package cn.csc.module.product.controller.admin.attr.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigInteger;
import java.time.LocalDateTime;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 属性信息 Excel 导出 Request VO", description = "参数和 AttrPageReqVO 是一致的")
@Data
public class AttrExportReqVO {

    @ApiModelProperty(value = "店铺Id")
    private BigInteger shopId;

    @ApiModelProperty(value = "属性名称")
    private String name;

    @ApiModelProperty(value = "属性描述")
    private String desc;

    @ApiModelProperty(value = "0:不需要，1:需要")
    private Byte searchType;

    @ApiModelProperty(value = "0:销售属性，1:基本属性")
    private Byte attrType;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
